package com.springcloud.tools.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author fuc
 * @create 2020-08-19
 */
@RestControllerAdvice
public class GlobalException {

  @ExceptionHandler(IdempotentException.class)
  public String idempotentException(IdempotentException e) {
    return e.getMessage();
  }
}
